FROM mysql:5.7

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY ./*.sql /docker-entrypoint-initdb.d

#CMD ["mysqld","--initialize","--user=mysql","--lower-case-table-names=1"]

# mysqld --initialize --user=mysql --lower-case-table-names=1

CMD ["--lower_case_table_names=1"]
